function send(cmd){
    var hxr=new XMLHttpRequest();
    var url="http://120.27.95.22:8080/FiveCows/command/send?accountKey=123456&deviceId=ff:aa:bb:cc:dd:ee&userId=1&command="+cmd;
    hxr.onreadystatechange=function(){
        if(hxr.readyState==hxr.DONE){
//            console.log(hxr.responseText);
        }
    }
    hxr.open("GET",url);
    hxr.send();

}
//http://120.27.95.22:8080/FiveCows/command/send?accountKey=123456&deviceId=ff:aa:bb:cc:dd:ee&userId=1&command=light_02_close
